{template common/contentheader}
<div class="setcontent">
	<div class="settitle">
		<h3>{lang edit_taobaorule:admin}</h3>{template operation/taobao-submenu}
	</div>
	<div class="setform">
		<form class="pzform" method="post" action="{url admin/taobaorule?act=save}" id="addform">
			
			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_start_price:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="start_price" id="start_price" value="$setting['start_price']"/>
				</div>
				<span class="formhelp">{lang taobaorule_start_price_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_end_price:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="end_price" id="end_price" value="$setting['end_price']"/>
				</div>
				<span class="formhelp">{lang taobaorule_end_price_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_auto_send:admin}:</label>
				<div class="formcontrol">
					<select class="select mr10" name="auto_send" id="auto_send">
                  	<option value="NAN" {echo ($setting['auto_send']=='NAN')?'selected':''}>不限</option>
                    <option value="true" {echo ($setting['auto_send']=='true')?'selected':''}>true</option>
                    <option value="false" {echo ($setting['auto_send']=='false')?'selected':''}>false</option>
                  </select>
				</div>
				<span class="formhelp">{lang taobaorule_auto_send_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_area:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="area" id="area" value="$setting['area']"/>
				</div>
				<span class="formhelp">{lang taobaorule_area_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_start_credit:admin}:</label>
				<div class="formcontrol">
					<select class="select mr10" name="start_credit" id="start_credit">
                    <option value="1heart" {echo ($setting['start_credit']=='1heart')?'selected':''}>1heart(一心)</option>
                    <option  value="2heart" {echo ($setting['start_credit']=='2heart')?'selected':''}>2heart (两心) </option>
                    <option  value="3heart" {echo ($setting['start_credit']=='3heart')?'selected':''}>3heart(三心) </option>
                    <option  value="4heart" {echo ($setting['start_credit']=='4heart')?'selected':''}>4heart(四心) </option>
                    <option  value="5heart" {echo ($setting['start_credit']=='5heart')?'selected':''}>5heart(五心) </option>
                    <option  value="1diamond" {echo ($setting['start_credit']=='1diamond')?'selected':''}>1diamond(一钻) </option>
                    <option  value="2diamond" {echo ($setting['start_credit']=='2diamond')?'selected':''}>2diamond(两钻) </option>
                    <option  value="3diamond" {echo ($setting['start_credit']=='3diamond')?'selected':''}>3diamond(三钻)</option>
                    <option  value="4diamond" {echo ($setting['start_credit']=='4diamond')?'selected':''}>4diamond(四钻) </option>
                    <option  value="5diamond" {echo ($setting['start_credit']=='5diamond')?'selected':''}>5diamond(五钻) </option>
                    <option  value="1crown" {echo ($setting['start_credit']=='1crown')?'selected':''}>1crown(一冠) </option>
                    <option  value="2crown" {echo ($setting['start_credit']=='2crown')?'selected':''}>2crown(两冠) </option>
                    <option  value="3crown" {echo ($setting['start_credit']=='3crown')?'selected':''}>3crown(三冠) </option>
                    <option  value="4crown" {echo ($setting['start_credit']=='4crown')?'selected':''}>4crown(四冠) </option>
                    <option  value="5crown" {echo ($setting['start_credit']=='5crown')?'selected':''}>5crown(五冠) </option>
                    <option  value="1goldencrown" {echo ($setting['start_credit']=='1goldencrown')?'selected':''}>1goldencrown(一黄冠) </option>
                    <option  value="2goldencrown" {echo ($setting['start_credit']=='2goldencrown')?'selected':''}>2goldencrown(二黄冠) </option>
                    <option  value="3goldencrown" {echo ($setting['start_credit']=='3goldencrown')?'selected':''}>3goldencrown(三黄冠) </option>
                    <option  value="4goldencrown" {echo ($setting['start_credit']=='4goldencrown')?'selected':''}>4goldencrown(四黄冠) </option>
                    <option  value="5goldencrown" {echo ($setting['start_credit']=='5goldencrown')?'selected':''}>5goldencrown(五黄冠) </option>
                  </select>
				</div>
				<span class="formhelp">{lang taobaorule_start_credit:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_end_credit:admin}:</label>
				<div class="formcontrol">
					<select class="select mr10" name="end_credit" id="end_credit">
                    <option value="1heart" {echo ($setting['end_credit']=='1heart')?'selected':''}>1heart(一心)</option>
                    <option  value="2heart" {echo ($setting['end_credit']=='2heart')?'selected':''}>2heart (两心) </option>
                    <option  value="3heart" {echo ($setting['end_credit']=='3heart')?'selected':''}>3heart(三心) </option>
                    <option  value="4heart" {echo ($setting['end_credit']=='4heart')?'selected':''}>4heart(四心) </option>
                    <option  value="5heart" {echo ($setting['end_credit']=='5heart')?'selected':''}>5heart(五心) </option>
                    <option  value="1diamond" {echo ($setting['end_credit']=='1diamond')?'selected':''}>1diamond(一钻) </option>
                    <option  value="2diamond" {echo ($setting['end_credit']=='2diamond')?'selected':''}>2diamond(两钻) </option>
                    <option  value="3diamond" {echo ($setting['end_credit']=='3diamond')?'selected':''}>3diamond(三钻)</option>
                    <option  value="4diamond" {echo ($setting['end_credit']=='4diamond')?'selected':''}>4diamond(四钻) </option>
                    <option  value="5diamond" {echo ($setting['end_credit']=='5diamond')?'selected':''}>5diamond(五钻) </option>
                    <option  value="1crown" {echo ($setting['end_credit']=='1crown')?'selected':''}>1crown(一冠) </option>
                    <option  value="2crown" {echo ($setting['end_credit']=='2crown')?'selected':''}>2crown(两冠) </option>
                    <option  value="3crown" {echo ($setting['end_credit']=='3crown')?'selected':''}>3crown(三冠) </option>
                    <option  value="4crown" {echo ($setting['end_credit']=='4crown')?'selected':''}>4crown(四冠) </option>
                    <option  value="5crown" {echo ($setting['end_credit']=='5crown')?'selected':''}>5crown(五冠) </option>
                    <option  value="1goldencrown" {echo ($setting['end_credit']=='1goldencrown')?'selected':''}>1goldencrown(一黄冠) </option>
                    <option  value="2goldencrown" {echo ($setting['end_credit']=='2goldencrown')?'selected':''}>2goldencrown(二黄冠) </option>
                    <option  value="3goldencrown" {echo ($setting['end_credit']=='3goldencrown')?'selected':''}>3goldencrown(三黄冠) </option>
                    <option  value="4goldencrown" {echo ($setting['end_credit']=='4goldencrown')?'selected':''}>4goldencrown(四黄冠) </option>
                    <option  value="5goldencrown" {echo ($setting['end_credit']=='5goldencrown')?'selected':''}>5goldencrown(五黄冠) </option>
                  </select>
				</div>
				<span class="formhelp">{lang taobaorule_end_credit_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_sort:admin}:</label>
				<div class="formcontrol">
					<select class="select mr10" name="sort" id="sort">
                    <option  value="price_desc" {echo ($setting['sort']=='price_desc')?'selected':''}>price_desc(价格从高到低) </option>
                    <option  value="price_asc" {echo ($setting['sort']=='price_asc')?'selected':''}>price_asc(价格从低到高)</option>
                    <option  value="credit_desc" {echo ($setting['sort']=='credit_desc')?'selected':''}>credit_desc(信用等级从高到低) </option>
                    <option  value="commissionRate_desc" {echo ($setting['sort']=='commissionRate_desc')?'selected':''}>commissionRate_desc(佣金比率从高到低) </option>
                    <option  value="commissionRate_asc" {echo ($setting['sort']=='commissionRate_asc')?'selected':''}>commissionRate_asc(佣金比率从低到高) </option>
                    <option  value="commissionNum_desc" {echo ($setting['sort']=='commissionNum_desc')?'selected':''}>commissionNum_desc(成交量成高到低) </option>
                    <option  value="commissionNum_asc" {echo ($setting['sort']=='commissionNum_asc')?'selected':''}>commissionNum_asc(成交量从低到高) </option>
                    <option  value="commissionVolume_desc" {echo ($setting['sort']=='commissionVolume_desc')?'selected':''}>commissionVolume_desc(总支出佣金从高到低) </option>
                    <option  value="commissionVolume_asc" {echo ($setting['sort']=='commissionVolume_asc')?'selected':''}>commissionVolume_asc(总支出佣金从低到高) </option>
                    <option  value="delistTime_desc" {echo ($setting['sort']=='delistTime_desc')?'selected':''}>delistTime_desc(商品下架时间从高到低) </option>
                    <option  value="delistTime_asc" {echo ($setting['sort']=='delistTime_asc')?'selected':''}>delistTime_asc(商品下架时间从低到高) </option>
                  </select>
				</div>
				<span class="formhelp">{lang taobaorule_sort_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_guarantee:admin}:</label>
				<div class="formcontrol">
					<select class="select mr10" name="guarantee" id="guarantee">
                  <option value="NAN" {echo ($setting['guarantee']=='NAN')?'selected':''}>不限</option>
                  <option value="true" {echo ($setting['guarantee']===true)?'selected':''}>true</option>
                  <option value="false" {echo ($setting['guarantee']===false)?'selected':''}>false</option>
                </select>
				</div>
				<span class="formhelp">{lang taobaorule_guarantee:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_start_commissionRate:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="start_commissionRate" id="start_commissionRate" value="$setting['start_commissionRate']"/>
				</div>
				<span class="formhelp">{lang taobaorule_start_commissionRate_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_end_commissionRate:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="end_commissionRate" id="end_commissionRate" value="$setting['end_commissionRate']"/>
				</div>
				<span class="formhelp">{lang taobaorule_end_commissionRate_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_start_commissionNum:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="start_commissionNum" id="start_commissionNum" value="$setting['start_commissionNum']"/>
				</div>
				<span class="formhelp">{lang taobaorule_start_commissionNum_tip:admin}</span>
			</div>

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_end_commissionNum:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="end_commissionNum" id="end_commissionNum" value="$setting['end_commissionNum']"/>
				</div>
				<span class="formhelp">{lang taobaorule_end_commissionNum_tip:admin}</span>
			</div>
			

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_start_totalnum:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="start_totalnum" id="start_totalnum" value="$setting['start_totalnum']"/>
				</div>
				<span class="formhelp">{lang taobaorule_start_totalnum_tip:admin}</span>
			</div>
			

			<div class="formgroup">
				<label class="formlabel">{lang taobaorule_end_totalnum:admin}:</label>
				<div class="formcontrol">
					<input type="text" name="end_totalnum" id="end_totalnum" value="$setting['end_totalnum']"/>
				</div>
				<span class="formhelp">{lang taobaorule_end_totalnum_tip:admin}</span>
			</div>

			<div class="formbuttons">
				<button type="submit" class="btn btn-primary">{lang save:admin}</button>
			</div>
		</form>
	</div>
</div>
{template common/contentfooter}